package com.bg.print.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 材料
 *
 * @author liuxvru
 * @email liuxvru@163.com
 * @date 2024-03-25 17:50:46
 */
@Data
@TableName("t_material")
public class MaterialEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     *
     */
    @TableId
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;
    /**
     * 材料名称
     */
    @Schema(description = "材料名称")
    private String name;
    /**
     * 颜色
     */
    @Schema(description = "颜色")
    private String color;
    /**
     * 备注
     */
    @Schema(description = "备注")
    private String remarks;
    /**
     * 删除(1删除，0启用)
     */
    @Schema(description = "删除(1删除，0启用)")
    private Integer enabled;
    /**
     * 价格
     */
    @Schema(description = "价格")
    private BigDecimal price;
    /**
     * 精度
     */
    @Schema(description = "精度")
    private String materialPrecision;
    /**
     * 是否有库存(1有，0没有)
     */
    @Schema(description = "是否有库存(1有，0没有)")
    private Integer stockStatus;
    /**
     * 是否上架(1上架，0未上架)
     */
    @Schema(description = "是否上架(1上架，0未上架)")
    private Integer isListed;

}
